/*redcers*/
import * as types from '../action/actionTypes';


const initialState = {
	name: ''
};

let home = (state = initialState, action) => {

	switch (action.type) {
		case types.ADD_NAME:
			return Object.assign({}, state, {
				name: action.name
			})
		case types.INIT_DATA:
			return Object.assign({}, state, {
				name: action.name
			})
		default:
			return state;
	}
}

export default home;